package com.vclee.fast.integration.power.model.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.vclee.fast.integration.power.model.SysGroup;
import com.vclee.fast.integration.power.model.SysUserRole;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
public class SysUserPageVo implements Serializable {
    /**
     * 系统用户表ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField(value = "org_id")
    private Integer orgId;

    /**
     * 唯一索引号，长度不大于40，不重复
     */
    @TableField(value = "`unique`")
    private String unique;

    /**
     * 部门
     */
    @TableField(value = "department")
    private Integer department;

    @TableField(value = "mobile")
    private String mobile;

    /**
     * 用户名
     */
    @TableField(value = "username")
    private String username;

    /**
     * 密码
     */
    @TableField(value = "`password`")
    private String password;

    /**
     * 谷歌验证码
     */
    @TableField(value = "google_cipher")
    private String googleCipher;

    /**
     * 账号状态(0:正常,1:冻结)
     */
    @TableField(value = "`status`")
    private Integer status;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    private List<SysUserRole> roles; // 用户个人角色

    private List<SysGroup> groups; // 用户所属组
}
